package com.lollipop.ucenter.rpc.model;

import com.lollipop.common.persistence.BaseModel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

@Data
public class User extends BaseModel<User> {

    private static final long serialVersionUID = 1L;
    private String username; // 用户名
    private String salt;
    private String password; // 密码
    private Boolean locked = Boolean.FALSE;

    // 业务字段 后期单独提取一张表
    private String nickname; // 昵称
    private String phone; // 手机
    private Date createtime; // 创建时间
    private Integer sex; // 性别
    // vo
    private Set<Role> roles = new HashSet<Role>();


}
